package com.boot.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DBConfig {
    @Value("${driverClasName}")
    String driverClasName;

    @Value("${url}")
    String url;

    @Value("${user}")
    String user;

    @Value("${password}")
    String password;

    @Override
    public String toString() {
        return "DBConfig{" +
                "driverClasName='" + driverClasName + '\'' +
                ", url='" + url + '\'' +
                ", user='" + user + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
